similarity

open override fun similarity(s1: String, s2: String): Double(source)

Computes the Jaccard similarity of two strings.

Return

The normalized Jaccard similarity.

Parameters

s1

The first string.

s2

The second string.

See also


fun similarity(profile1: Map<String, Int>, profile2: Map<String, Int>): Double(source)

Computes the Jaccard similarity of precomputed profiles.

Return

The normalized Jaccard similarity.

Parameters

profile1

The profile of the first string.

profile2

The profile of the second string.

See also